package org.theonept.travian.util;

import org.theonept.travian.model.Production;
import org.theonept.travian.t4a.R;

import android.app.Activity;
import android.widget.TextView;

public class T4AUtil {
	public static void setTextViewRessources(Activity view, Production prod) {
		TextView textStockBois = (TextView) view.findViewById(R.id.stockBois);
		TextView textStockArgile = (TextView) view.findViewById(R.id.stockArgile);
		TextView textStockFer = (TextView) view.findViewById(R.id.stockFer);
		TextView textStockDepot = (TextView) view.findViewById(R.id.stockDepot);
		TextView textStockCereal = (TextView) view.findViewById(R.id.stockCereal);
		TextView textStockSilot = (TextView) view.findViewById(R.id.stockSilot);
		textStockArgile.setText(prod.getStockArgile() + "");
		textStockFer.setText(prod.getStockFer() + "");
		textStockBois.setText(prod.getStockBois() + "");
		textStockCereal.setText(prod.getStockCereale() + "");
		textStockDepot.setText(prod.getStockMaxRessources() + "");
		textStockSilot.setText(prod.getStockMaxCereale() + "");

	}

}
